Goto

Collaborating Authors

 time series and trend


Times Series and Trends with Plotly and Pandas

#artificialintelligence

Of all the graphing libraries in the land, Plotly is one of the best -- it is also one of the most frustrating. On the positive side, Plotly is capable of producing excellent visualizations, allows you to avoid Java (if that's not your thing), and natively integrates with HTML. On the negative side, the syntax can be quite confusing when switching between single plots and mixed plots. For example, with plotly_express (px) you might pass an entire dataframe as a parameter; however, with graph_objects (go), the inputs change and may require the use of dictionaries and Pandas Series instead of DataFrames. Of all the graphing libraries in the land, Plotly is one of the best -- it is also one of the most frustrating.